package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id值
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发车时间
     */
    private LocalDate departTime;

    /**
     * 出发地
     */
    private Integer beginning;

    @TableField(exist = false)
    private String beginningName;//出发地名称

    /**
     * 目的地
     */
    private Integer destination;

    @TableField(exist = false)
    private String destinationName;//目的地名称

    /**
     * 参考车型
     */
    private String carType;

    /**
     * 预估时长
     */
    private LocalDateTime time;

    /**
     * 车价
     */
    private Double price;


}
